package com.ibeeking.found.file.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ibeeking.found.file.service.common.dos.UserFileDO;
import com.ibeeking.found.file.service.common.vo.FileListVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserFileMapper extends BaseMapper<UserFileDO> {

    List<UserFileDO> selectUserFileByLikeRightFilePath(@Param("filePath") String filePath, @Param("userId") Long userId);

    Page<FileListVO> selectPageVo(Page<?> page, @Param("userFile") UserFileDO userFile, @Param("fileTypeId") Integer fileTypeId);

    Long selectStorageSizeByUserId(@Param("userId") Long userId);
}
